<template>
  <div id='live_talent'>   
     <div class="rightBox">
      <div class="btn_group">
        <button
          :class="{ active: input_btn == '直播达人榜' }"
          @click="input_btn = '直播达人榜'"
        >
          直播达人榜
        </button>
        <!-- <button
          :class="{ active: input_btn == '音浪收入榜' }"
          @click="input_btn = '音浪收入榜'"
        >
          音浪收入榜
        </button>
        <button
          :class="{ active: input_btn == '土豪打赏榜' }"
          @click="input_btn = '土豪打赏榜'"
        >
          土豪打赏榜
        </button>
        <button
          :class="{ active: input_btn == '直播分享榜' }"
          @click="input_btn = '直播分享榜'"
        >
          直播分享榜
        </button> -->
      </div>
      <div class="rightBox-content">
        <Talent01 v-if="input_btn == '直播达人榜'" />
        <!-- <Talent02 v-if="input_btn == '音浪收入榜'" /> -->
        <!-- <Talent03 v-if="input_btn == '土豪打赏榜'" /> -->
        <!-- <Talent05 v-if="input_btn == '直播分享榜'" />  -->
      </div>
    </div>
  </div>
</template>
<script>
import Talent01 from './talent_01.vue'
// import Talent05 from './talent_05.vue'
// import Talent03 from './talent_03.vue'
// import Talent02 from './talent_02.vue'
export default {
  name: 'live_talent',
  components: { 
    // Talent05,  
    // Talent03, 
    // Talent02, 
    Talent01 
  },
  data() {
    return {
       input_btn: "直播达人榜",
    }
  },
   watch: {
    input_btn(newvalue) {
      if (newvalue == "直播达人榜") {
        document.title =
          "直播达人榜-直播电商数据分析&智能分析服务平台-掌上精选";
      } else if (newvalue == "音浪收入榜") {
        document.title =
          "音浪收入榜-直播电商数据分析&智能分析服务平台-掌上精选";
      } else if (newvalue == "土豪打赏榜") {
        document.title =
          "土豪打赏榜-直播电商数据分析&智能分析服务平台-掌上精选";
      } else if (newvalue == "直播分享榜") {
        document.title =
          "直播分享榜-直播电商数据分析&智能分析服务平台-掌上精选";
      }
      // console.log(this.tit);
    },
  },
    created() {
      document.title = "直播达人榜-直播电商数据分析&智能分析服务平台-掌上精选";
    if (this.$route.params.id) this.input_btn = this.$route.params.id
  },
  mounted() {
    this.showtabs()
  },
  methods: {
    showtabs() {
      if (this.$route.query.input_btn != null) {
        this.input_btn = this.$route.query.input_btn
      }
    },
  },
}
</script>
<style scoped lang='less'>
#live_talent {
  box-sizing: border-box;
  display: flex;
  min-height: 100vh;
   margin-top: @margin-num;
  margin-left: @margin-num;
  margin-right: @margin-num;
   background-color: #f1f1f1;


  .rightBox {

    -webkit-box-sizing: border-box;
    box-sizing: border-box;

    height: 100%;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    border-radius: 6px;
    .btn_group {
      .active {
        background-color: #fd7f2c;
        color: #ffffff !important;
      }
      button {
        font-size: 14px;
        color: #555;
        padding-left: 23px;
        padding-right: 23px;
        height: 40px;
        background-color: #fff;
        border-radius: 4px;
        margin-right: 7px;
        font-weight: 600;
      }
      button:hover{
          color: #ff924b;
      }
    }
  }
  .rightBox-content {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 20px;
    margin-top: 10px;
    padding-bottom: 0;
  }
}
</style>
